/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managedbean.SLC;

import java.util.Collection;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import merlion.common.entity.Staff;
import merlion.common.session.stateless.SystemUserSessionBeanLocal;

/**
 *
 * @author Kenn
 */
@ManagedBean (name = "ceManagerBean")
@RequestScoped
public class CustomerExecutiveManagerBean {

    @EJB
    private SystemUserSessionBeanLocal suBean;
    
    private Collection<Staff> customerExecutives;
    
    //--------------------------------------------------------------------------
    //                          Constructor
    //--------------------------------------------------------------------------
    public CustomerExecutiveManagerBean() {
    }

    //--------------------------------------------------------------------------
    //                          Getter and Setter
    //--------------------------------------------------------------------------
    public Collection<Staff> getCustomerExecutives() {
        return customerExecutives;
    }

    public void setCustomerExecutives(Collection<Staff> customerExecutives) {
        this.customerExecutives = customerExecutives;
    }
    
    //--------------------------------------------------------------------------
    //                          Manager Bean Methods
    //--------------------------------------------------------------------------
    public Collection<Staff> getAllCustomerExecutives(){
        
        //TO DO: Return list of customer executive instead of all sales Dep
        Collection<Staff> list = suBean.getAllStaffbyDepartment("SalesDep");
        return list;
    }
}